﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace LdtJudge.DataEngine.Model.XMLConfigModel.Dudection
{
    /// <summary>
    /// 庭次推导
    /// </summary>
    [Serializable]
    [XmlRootAttribute("root", IsNullable = false)]
    public class CourDessionRootConfig
    {
        /// <summary>
        /// 转换实体
        /// </summary>
        [XmlElementAttribute("doctype", IsNullable = false)]
        public List<CourDessionDocTypeConfig> courDessionDocTypeConfigList { get; set; }
    }

    public class CourDessionDocTypeConfig
    {
        /// <summary>
        /// 案件类型
        /// </summary>
        [XmlAttribute("code")]
        public string caseType { get; set; }

        /// <summary>
        /// 判定使用的XML路径
        /// </summary>
        [XmlAttribute("determine")]
        public string path { get; set; }

        /// <summary>
        /// 赋值实体
        /// </summary>
        [XmlElementAttribute("data", IsNullable = false)]
        public List<CourDessionDataeConfig> courDessionDataeConfigList { get; set; }

    }

    /// <summary>
    /// 赋值实体
    /// </summary>
    public class CourDessionDataeConfig
    {
        /// <summary>
        /// 赋值路径
        /// </summary>
        [XmlAttribute("value")]
        public string path { get; set; }
    }
}
